package com.xyw.code.authentication.server.feign;


import com.xyw.code.authorization.common.entity.vo.SysMenu;
import com.xyw.code.common.core.entity.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Component
@Slf4j
public class SysMenuProviderFallback implements SysMenuProvider {
    @Override
    public Result<List<SysMenu>> menus() {
        log.error("获取所有菜单失败！！！！");
        return Result.fail(new ArrayList<>());
    }

    @Override
    public Result<List<SysMenu>> menus(String username) {
        log.error("根据用户名{},获取菜单信息失败",username);
        return Result.fail(new ArrayList<>());
    }
}
